home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / std_unix / archive / text0060.txt < prev    next >
Encoding:
Text File  |  1993-07-06  |  1.0 KB  |  25 lines

  1. Submitted-by: peter@nmti.com (peter da silva)
  2.  
  3. What is the relationship between O_APPEND and aio_reqprio on an asynchronous
  4. I/O call? The standard specifies on lines 390 and following that "if O_APPEND
  5. is set... write operations append to the file *in the same order as the calls
  6. were made*." (emphasis mine). On lines 396 and following, it says that I/O is
  7. queued in priority order, and "the aio_reqprio member can be used to lower
  8. (but not raise) the asynchronous I/O operation priority.
  9.  
  10. Suppose you have a file open for O_APPEND. You issue a write with aio_reqprio
  11. having a positive value, then issue a write with aio_reqprio set to zero.
  12.  
  13. Lines 396 and following imply the second I/O may occur before the first,
  14. despite O_APPEND being set.
  15.  
  16. -- 
  17. Peter da Silva                                            `-_-'
  18. Network Management Technology Incorporated                 'U` 
  19. 12808 West Airport Blvd.  Sugar Land, TX  77478  USA
  20. +1 713 274 5180                            "Na sema Jambo mbwa kali yake leo?"
  21.  
  22.  
  23. Volume-Number: Volume 31, Number 62
  24.  
  25.